{if !$CPT_CONSTRUCTOR_MODE}
	{if  $PAGE_VIEW ne 'mobile' && $product_info.picture}	
	<div style="text-align:center;width: {$smarty.const.CONF_PRDPICT_STANDARD_SIZE+32}px;">
		<figure style="width: {$smarty.const.CONF_PRDPICT_STANDARD_SIZE}px;" id="{$product_info.productID}">
		{if !$printable_version&&$product_info.big_picture && ($product_info.big_picture!=$product_info.picture)}
			<a class="fancybox" {if $all_product_pictures}rel="product_{$product_info.picture}"{/if} target="_blank" href='{$smarty.const.URL_PRODUCTS_PICTURES}/{if $product_info.big_picture}{$product_info.big_picture|escape:'url'}{else}{$product_info.picture|escape:'url'}{/if}' title="<b>{$product_info.name|escape:'html'}</b> <i>({$product_info.product_code})</i>">
				<img id='img-current_picture' border='0' src="{$smarty.const.URL_PRODUCTS_PICTURES}/{$product_info.picture|escape:'url'}" title="{$page_title|escape:'html'}" alt="{$page_title|escape:'html'}" >
			</a>
		{else}
			<img id='img-current_picture' border='0' src="{$smarty.const.URL_PRODUCTS_PICTURES}/{$product_info.picture|escape:'url'}" title="{$page_title|escape:'html'}" alt="{$page_title|escape:'html'}" >		
		{/if}
		</figure>
		
		{if $all_product_pictures}
		{assign var=AllPicturesCount value=$all_product_pictures|@count}
		{math assign=ThumbnailSize equation="(Total/(Count-1))-4" Total=$smarty.const.CONF_PRDPICT_STANDARD_SIZE Count=$AllPicturesCount}
		<div>
		
		{foreach from=$all_product_pictures item=_picture name=frpict}
		{if $_picture.photoID != $product_info.photoID}
			{counter name=_pict_num assign=_pict_num}
			<div class="subimage_thumbnails" style="width: {$ThumbnailSize}px;">		
			{if !$printable_version&&($_picture.width>$smarty.const.CONF_PRDPICT_THUMBNAIL_SIZE ||$_picture.height>$smarty.const.CONF_PRDPICT_THUMBNAIL_SIZE) }
				<a class="fancybox" rel="product_{$product_info.picture}" href='{$smarty.const.URL_PRODUCTS_PICTURES}/{if $_picture.enlarged}{$_picture.enlarged|escape:'url'}{else}{$_picture.filename|escape:'url'}{/if}' title="<b>{$product_info.name|escape:'html'}</b> <i>({$product_info.product_code})</i>">
					<img src='{$smarty.const.URL_PRODUCTS_PICTURES}/{$_picture.thumbnail|escape:'url'}' border='0' alt="{$product_info.name|escape:'html'}" title="{$product_info.name|escape:'html'}" style="width: {$ThumbnailSize}px;">
				</a>
			{else}
				<img src='{$smarty.const.URL_PRODUCTS_PICTURES}/{$_picture.thumbnail|escape:'url'}' border='0' alt="{$product_info.name|escape:'html'}" title="{$product_info.name|escape:'html'}" >
			{/if}
			</div>
		{/if}
		{/foreach}
		</div>
		{/if}
	{/if}
</div>

{else}
	<div style="text-align:center">
		<img border=0 src="{$smarty.const.URL_DEMOPRD_IMAGES}/picture1.jpg" alt="{'demoprd_name'|transcape}">
		<br>
		<table align="center"><tr><td><img src="{$smarty.const.URL_IMAGES}/enlarge.gif"></td><td>
			<a class="olive" href="#">{"str_enlarge_picture"|translate}</a>
		</td></tr></table>
	</div>
{/if}